class singleton {
    public static singleton instance = new singleton();

    public static singleton getInstance(){
        return instance;
    }

    private singleton(){}
}

public class demo5 {
    public static void main(String[] args) {
        singleton s1 = singleton.getInstance();
        singleton s2 = singleton.getInstance();
    }
}
